<template>
	<view class="success-wrap">
		<view class="success-img">
			<image src="../../static/success-bg.png" mode=""></image>
			<text class="gradient-text">提交成功！</text>
		</view>
		<view class="success-btn">
			<button type="default" @click="nextStep">下一步</button>
			<button type="default" @click="goBack">返回首页</button>
		</view>
	</view>
</template>

<script>
	export default {
		onLoad(options) {
			
		},
		
		props: {
			next: String
		},
		
		methods: {
			nextStep() {
				uni.navigateTo({
					url: this.next || '/pages/address/address'
				})
			},
			
			goBack() {
				uni.redirectTo({
					url: '/pages/index/index'
				})
			}
		}
	}
</script>

<style lang="scss">
.success-img {
	background-color: #FFFFFF;
	border-radius: 10rpx;
	margin: 20rpx;
	padding: 20rpx;
	
	image {
		display: block;
		width: 357rpx;
		height: 233rpx;
		margin: 0 auto;
	}
	
	text {
		font-size: 26rpx;
	}
}

.success-btn {
	margin: 20rpx;
	
	button {
		margin-bottom: 20rpx;
		border-radius: 20rpx;
		height: 80rpx;
		font-size: 24rpx;
		text-align: center;
		line-height: 80rpx;
		background: linear-gradient(to right, #60d8d2, #478ce4);
		color: #FFFFFF;
	}
}
</style>
